<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <body>

        <ui:composition template="./../Template.xhtml">

           
            <ui:define name="content">
                <h:form id="formEditEscola">
                    
                    <h:panelGrid columns="2" id="editEscola">
                        <f:facet name="header">
                           Edição de Dados da Escola<br/>
                        </f:facet>
                        <h:outputText value="Escola.:"/>
                        <p:inputText value="#{escolaFaces.selectedEscola.escola}" label="Escola" id="Escola" size="80"  maxlength="120" required="true" />
                        <h:outputText value="Município.:"/>
                        <p:inputText value="#{escolaFaces.selectedEscola.municipio}" label="Municipio" id="Municipio" size="60" maxlength="70"  required="true"/>
                        <h:outputText value="INEP.:" />
                        <p:inputText value="#{escolaFaces.selectedEscola.inep}" label="Inep" id="Inep" size="8" maxlength="8" required="true" />

                    </h:panelGrid>
                    <br/>
                    <p:messages id="escolaMessages"/>
                    <p:commandButton value="Gravar" action="#{escolaFaces.edit()}"  update="escolaMessages" id="gravar"/>      
                    <br/>
                    <br/>
                </h:form>
            </ui:define>

           

        </ui:composition>

    </body>
</html>
